{extend name="./template/default/pub/base.html" /}
{block name="seo"}
<title>漫画更新周期表-{$site_name}</title>
{/block}
{block name="content"}
{include file="./template/default/pub/top2.html" /}
<div class="manga-list-bar">
    {for start="0" end="7"}
    <a class="manga-list-bar-item {$day == $i ? 'active' : ''}" data-id="{$day}" data-val="{$i}" style="width: 14.28%"></a>
    {/for}
</div>
<div class="manga-list" style="border:none;background-color:#f8f8f8;margin-top: 100px;">
    <ul id="updatedb0" class="manga-list-2">
        {volist name="books" id="vo"}
        <li>
            <div class="manga-list-2-cover">
                <a href="{$book_ctrl}/{$vo.param}">
                    <img class="manga-list-2-cover-img lazy" data-original="{$vo.cover_url}" src="https://s1.ax1x.com/2018/12/13/FN8WLQ.jpg">
                </a>
            </div>
            <p class="manga-list-2-title">
                <a href="{$book_ctrl}/{$vo.param}">{$vo.book_name}</a>
            </p>
            <p class="manga-list-2-tip">
                {$vo.summary}
            </p>
        </li>
        {/volist}
    </ul>
    <div class="pagination">
        {if $page.last_page > 1}
        {if $page.current_page == 1}
        <a class="paginate-disabled-btn" href="#"> < </a>
        {else/}
        <a class="paginate-btn" href="/{$booklist_act}?page={$page.current_page-1}{$param}" title="上一页"> < </a>
        {/if}
        {if $page.current_page == $page.last_page}
        <a class="paginate-disabled-btn" href="#"> > </a>
        {else/}
        <a class="paginate-btn" href="/{$booklist_act}?page={$page.current_page+1}{$param}" title="下一页"> > </a>
        {/if}
        {/if}
    </div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/locale/zh-cn.js"></script>
<script>
    $('.manga-list-bar-item').each(function () {
        var day = $(this).attr('data-val');
        $(this).html(moment().subtract(day,'days').format('dddd').replace('星期','周'));
        $(this).click(function () {
            var date = moment().subtract(day,'days').format('YYYY-MM-DD');
            location.href = 'update?date=' + date + '&day=' + day;
        })
    })
    $(function () {
        $("#manga-list-bar-right").click(function () {
            if ($("#manga-list-bar-right-down").is(":hidden")) {
                $("#manga-list-bar-right-down").show();
            }
            else {
                $("#manga-list-bar-right-down").hide();
            }
        });
    });
</script>
{include file="./template/default/pub/return_top.html"}
{/block}